import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 开台记录*/
// 创建
export const spinReportProductOpenRecordCreate = (data) => postRequest('/spinreport/product-open-record/create', data);

// 更新
export const spinReportProductOpenRecordUpdate = (data) => putRequest('/spinreport/product-open-record/update', data);

// 删除
export const spinReportProductOpenRecordDelete = (params) => deleteRequest('/spinreport/product-open-record/delete', params);

// 获得
export const spinReportProductOpenRecordGet = (params) => getRequest('/spinreport/product-open-record/get', params);

// 分页
export const spinReportProductOpenRecordPage = (params) => getRequest('/spinreport/product-open-record/page', params);

// 导出 Excel
export const spinReportProductOpenRecordExportExcel = (params) => getRequest('/spinreport/product-open-record/export-excel', params);
export const spinReportProductOpenRecordUpdateAuditState = (data) => postRequest('/spinreport/product-open-record/update-audit-state', data);

export const reportProductionOrderProductOpenRecord = (data) => getRequest('/report/production/order/product-open-record', data);
